package cn.sccl.dirms.dev.model;

import cn.sccl.common.exception.BusinessException;
import cn.sccl.common.model.BaseModel;

/**
* 
* 数据库表 t_dev_s_d_rela 的实体对象
* Created by liupan on 2017-06-25.
*/
public class SerDataRela extends BaseModel{
/**
*表名
*/
public final static String TABLE_NAME ="t_dev_s_d_rela";

    private java.lang.String chartId;//
    private java.lang.String serId;//
    private java.lang.String dsId;//
    private java.lang.String key;//

    public void setChartId(java.lang.String chartId){
    this.chartId = chartId;
    }

        public java.lang.String getChartId(){
    return this.chartId;
    }
    public void setSerId(java.lang.String serId){
    this.serId = serId;
    }

        public java.lang.String getSerId(){
    return this.serId;
    }
    public void setDsId(java.lang.String dsId){
    this.dsId = dsId;
    }

        public java.lang.String getDsId(){
    return this.dsId;
    }
    public void setKey(java.lang.String key){
    this.key = key;
    }

        public java.lang.String getKey(){
    return this.key;
    }

/**
* clone一个对象。
* @param cls 需要克隆的对象类型，只能是当前类的子类
* @param
<T>
    * @return
    * @throws IllegalAccessException
    * @throws InstantiationException
    */
    public
    <T extends SerDataRela> T clone(Class
        <T> cls) {
            try {
            T t = cls.newInstance();
            t.setId(this.
            getId());
            t.setChartId(this.
            getChartId());
            t.setSerId(this.
            getSerId());
            t.setDsId(this.
            getDsId());
            t.setKey(this.
            getKey());
            t.setDeleteFlag(this.
            isDeleteFlag());
            t.setUpdateTime(this.
            getUpdateTime());
            t.setCreateTime(this.
            getCreateTime());
            return t;
            } catch (Exception e) {
            e.printStackTrace();
            throw new BusinessException("对象克隆失败，请克隆的目标对象是否具有无参的构造函数。", e.getCause());
            }
            }
            }